function formatPagination(characters, limit) {
    const nextCursor = characters.length > 0 
      ? characters[characters.length - 1].id 
      : null;
    
    return {
      data: characters,
      pagination: {
        nextCursor,
        hasMore: characters.length === limit
      }
    };
  }
  
  module.exports = { formatPagination };